Skip to content

fix(i18n): complete translation coverage for all 12 supported languages - #149

Closed
Trovic1 wants to merge 1 commit into
rinafcode:mainfrom
Trovic1:fix/i18n-complete-translations
Closed

fix(i18n): complete translation coverage for all 12 supported languages#149
Trovic1 wants to merge 1 commit into
rinafcode:mainfrom
Trovic1:fix/i18n-complete-translations

Conversation

@Trovic1

@Trovic1 Trovic1 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes missing translation keys causing fallback to English by completing all locale files and adding build-time validation.

Changes

  • Added missing key: common.welcome was referenced in ExampleUsage.tsx but never defined — added to en.json, es.json, ar.json
  • Created 9 new locale files: fr.json, de.json, he.json, ja.json, zh.json, pt.json, ru.json, it.json, ko.json — all with complete 71-key parity against en.json
  • Build-time validation: Added scripts/validate-i18n.js that compares all locale files against en.json and fails (exit code 1) on missing/extra keys
  • Dev-mode warning: t() function in useInternationalization.tsx now logs a console warning when a key is missing during development
  • NPM script: Added validate:i18n and integrated into the validate command

Validation

All 12 locales pass with 71/71 keys ✅

Impacted Files

  • src/locales/*.json (3 modified, 9 new)
  • src/hooks/useInternationalization.tsx
  • scripts/validate-i18n.js (new)
  • package.json

Close #138

- Add missing 'common.welcome' key to en, es, ar locale files
- Create 9 new locale files: fr, de, he, ja, zh, pt, ru, it, ko
- Add build-time translation key validation script (validate-i18n.js)
- Add dev-mode console warning for missing translation keys in useInternationalization hook
- Add validate:i18n npm script and integrate into validate command

Close rinafcode#138
@drips-wave

drips-wave Bot commented Apr 23, 2026

Copy link
Copy Markdown

@Trovic1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

PLEASE FIX CI
KINDLY SUPPORT OUR PROJECT WITH A STAR

@Trovic1

Trovic1 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

PLEASE FIX CI KINDLY SUPPORT OUR PROJECT WITH A STAR

Ok will do now

@Trovic1 Trovic1 closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internationalization - Missing Keys

2 participants